package com.zwh.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.zwh.dao.MenuDAO;
import com.zwh.entity.Menu;

import javax.annotation.Resource;

@Service("menuService")
@Transactional
public class MenuServiceImpl implements MenuService {
	@Resource
	private MenuDAO menuDAO;;
	@Override
	@Transactional(readOnly=true,propagation=Propagation.SUPPORTS)
	public List<Menu> selectMenu() {
		return menuDAO.selectMenu();
	}

}
